package com.yanqu.road.server.logic.activity.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.server.logic.activity.BaseActivityData;
import com.yanqu.road.server.manger.rank.ActivityRankMgr;

public abstract class BaseNewRankActivityCondition extends BaseActivityCondition {

	public BaseNewRankActivityCondition(ActivityInfo activityInfo, ActivityConditionInfo activityConditionInfo, BaseActivityData baseActivityData) {
		super(activityInfo, activityConditionInfo, baseActivityData);
	}

	protected void rankChange() {
		ActivityRankMgr.changeActivityRank(player.getUserId(), activityConditionInfo.getActivityId(), activityConditionInfo.getType(),
				getValue(), getParam());
	}
}
